
// 样式
import './library/hami.js'
import './style/project.scss'

// 主程序
import Vue from 'vue'
import methods from './library/methods.js'
import './library/filter.js'


// 路由
import router from './library/router.js'
router.beforeEach((to, from, next) => {
    document.title = to.meta.name ? to.meta.name : '404'
    next();
})

// 数据管理
import store from './store'

// Ajax 请求插件
import VueResource from 'vue-resource'
Vue.use(VueResource)

// 启动应用
import index from './page/app.vue'
const app = new Vue({
    el:'#lt',
    store,
    router,
    methods,
    render: h => h(index)
})

window.Vue = Vue